﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyExtJS4.Models;

namespace MyExtJS4.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Scheduler()
        {
            return View();
        }

        public ActionResult GridWithMultiSelect()
        {
            return View();
        }

        public JsonResult GetData()
        {
            IList<Person> people = new List<Person>();
            people.Add(new Person { Id = 1, FName = "Mark", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 2, FName = "Scott", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 3, FName = "Ann", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 4, FName = "Seerena", LName = "Ahmad", City = "Bellevue" });
            people.Add(new Person { Id = 1, FName = "Mark", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 2, FName = "Scott", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 3, FName = "Ann", LName = "Fabric", City = "Bellevue" });
            people.Add(new Person { Id = 4, FName = "Seerena", LName = "Ahmad", City = "Bellevue" });
            return this.Json(people, JsonRequestBehavior.AllowGet);
        }

    }
}
